
#include <klib.h>

int strlen(char *str){

  int i = 0;
  for ( ; ; i++){
    if (str[i] == 0) return i;
  }

}

void itobs(unsigned int num, char *dest){

  int i = 31;
  for ( ; i >= 0; i--){
    unsigned int mask = 1 << i;
    if (num & mask) {
      dest[31 - i] = '1';
    } else {
      dest[31 - i] = '0';
    }
  }
  dest[32] = 0;

}
